/*
 * @Author: qianmingtian
 * @Date: 2020-07-07 10:42:51
 * @LastEditors: qianmingtian
 * @LastEditTime: 2020-07-07 10:54:18
 * @FilePath: \qianmingtian.github.io\code\java\abstractPrac\ArrayListtest.java
 */
package abstractPrac;

import java.util.ArrayList;
import java.util.List;

public class ArrayListtest {
    private static void updateList(List list) {
        list.remove((Integer)2);
    }

    public static void main(String[] args) {
        List list = new ArrayList<Integer>();

        list.add(1);
        list.add(2);
        list.add(3);

        updateList(list);
        System.out.println(list);

    }

}/*
  * @Author: qianmingtian
  * 
  * @Date: 2020-07-07 10:42:51
  * 
  * @LastEditors: qianmingtian
  * 
  * @LastEditTime: 2020-07-07 10:42:51
  * 
  * @FilePath: \qianmingtian.github.io\code\java\abstractPrac\ArrayListtest.java
  */
